#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 20 22:37:21 2023

@author: liqingsimac
"""
import numpy as np
import scipy.optimize as sco

c=[-70,-50,-60]
A=[[2,4,3],[3,1,5],[7,3,5]]
b=[[150],[160],[200]]

#res=sco.linprog(c,A,b,bounds=(0,100))
res=sco.linprog(c,A,b)

#np.set_printoptions(precision=2,suppress=True)
print('Minimal value:',res.fun)
print('Minimal place:',res.x)

